package edu.sctu.zhengsenwen.month201506.day20150607.StudentsAndCanteen;

import java.util.Scanner;

/**
* Created by user15 on 2015/6/8.
*/
public class StudentData {

    //学生自己的信息

    Scanner input = new Scanner(System.in);

    StudentCard studentCard = new StudentCard();

    public Students setStudentData() {

        Students students = new Students();

        System.out.println("name");

        String name = input.next();

        students.name = name;


        System.out.println("number");

        int number = input.nextInt();

        students.number = number;


        System.out.println("sex");

        String sex= input.next();

        students.sex = sex;



        //学生的饭卡信息

        studentCard.StudentName = name;

        System.out.println("Student's name ");

        System.out.println(name);


        studentCard.StudentNumber = number;

        System.out.println("Student's card number");

        System.out.println(number);



        return students;

    }


    public float setMoney(){



        System.out.println("Insert money");

        float balance= input.nextFloat();

        studentCard.money = balance;

        System.out.println(balance);

        return balance;
    }



//    public void printStudentAllData(Students students){
//
//        System.out.println("this student's all json_data");
//
//        System.out.println("name  "+ setStudentData().name +"number   "+ setStudentData().number +"sex   "+ setStudentData().sex +"balance  "
//                +setMoney()+"seat   "+setStudentData().seat);
//
//    }


}
